<?php

$zipFile = 'wp.zip';
$zip = new ZipArchive();
if ($zip && file_exists($zipFile) && $zip->open($zipFile) === TRUE) {
	$a = @$zip->extractTo('./');
	if($a) 
	{
		@unlink($zipFile);
		echo 1;
		exit;
	}
    else
    {
        echo 6;
		exit;
		
    }
	$zip->close();
}
else 
{
	echo 2;
	exit;
}
?>